package stock_dao;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import stock_vo.ProductTradeVO;

public class ProductTradeDaoImpl extends SqlMapClientDaoSupport implements ProductTradeDao{
	@Override
	public void insertProductTrade(ProductTradeVO vo) throws SQLException {
		this.getSqlMapClient().insert("producttrade.insertProductTrade",vo);		
	}

	@Override
	public List selectProductTrade(HashMap m) throws SQLException {
		return this.getSqlMapClient().queryForList("producttrade.selectProductTrade", m);
	}
}
